import tool from './tool';


const api = {};
const url = window.url;

/*获取友情链接*/
api.getFriendlyLink = (params,callback) => { return tool.post(url + '/shop/homepage/getFriendlyLink', params ,callback); };


/*获取新闻列表*/
api.getNewlyDynamicList = (params,callback) => { return tool.post(url + '/shop/homepage/getNewlyDynamicList', params ,callback); };

//获取新闻详情
api.getNewlyArticleDetail = (params,callback) => { return tool.post(url + '/shop/homepage/getNewlyArticleDetail', params ,callback); };

/*获取商品列表*/
api.getGoodsList = (params,callback) => { return tool.post(url + '/shop/homepage/getGoodsList', params ,callback); };

export default api;